package com.itheima.d2_byte_stream;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/*
     目标：掌握文件字节输出流FileOutputStream的使用。
 */
public class FileOutputStreamTest4 {
    public static void main(String[] args) throws Exception {
        FileOutputStream fos = new FileOutputStream("ttt.txt",true);

//        fos.write(65);
        byte[] bytes = {97,98,99,100};

//        fos.write(bytes);
        for (int i = 0; i < 10; i++) {
            fos.write("乌萨奇、小八、吉伊".getBytes());
//            fos.write("\n\r".getBytes());
            fos.write(System.lineSeparator().getBytes());
        }

        fos.close();



    }
}
